DISCUSSION
The
ATSUGetAllAttributes function obtains an array of the tags and data sizes corresponding to all previously set style run attributes in a style object. You can obtain a particular attribute value by passing the corresponding tag and data size pair to the function
ATSUGetAttribute.
The best way to use
ATSUGetAllAttributes is to call it twice:
-
Pass a reference to the style object containing the attribute in the iStyle parameter, NULL for the oAttributeInfoArray parameter, and 0 for the other parameters. ATSUGetAllAttributes returns the size of the tag and data size arrays in the oTagValuePairCount parameter.
-
Allocate enough space for an array of the returned size, then call the function again, passing a pointer in the oAttributeInfoArray parameter; on return, the pointer references the array of tag and data size pairs.